#ifndef _DICOM_RESTFUL_URL_H_
#define _DICOM_RESTFUL_URL_H_

#include <string>
#include <map>
#include <vector>
#include <pcre.h>
#include <gwbase/base/slice.h>

namespace dicom {

typedef std::vector<std::string> UrlParams;

class UrlPattern {
 public:
  UrlPattern(const std::string& pattern);
  ~UrlPattern();

  bool MatchUrl(const char* url, UrlParams* params);

 private:
  std::string raw_pattern_;
  pcre* pcre_;
};
}

#endif  // _DICOM_RESTFUL_URL_H_
